package org.example.warehouse.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.example.contract.domain.ContractProduct;

import java.math.BigDecimal;

/**
 * 仓库存储对象 mall_warehouse_store
 *
 * @author 小孟微信：xiaomengcode
 * @date 2024-04-12
 */
public class WarehouseStore extends ContractProduct
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long warehouseStoreId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private Integer num;

    /** 使用数量 */
    @Excel(name = "使用数量")
    private Integer useNum;

    /** 剩余数量 */
    @Excel(name = "剩余数量")
    private Integer remainNum;

    private Integer checkNum;

    /** 平均金额 */
    private BigDecimal averageMoney;

    public BigDecimal getAverageMoney() {
        return averageMoney;
    }

    public void setAverageMoney(BigDecimal averageMoney) {
        this.averageMoney = averageMoney;
    }

    public Integer getCheckNum() {
        return checkNum;
    }

    public void setCheckNum(Integer checkNum) {
        this.checkNum = checkNum;
    }

    public void setWarehouseStoreId(Long warehouseStoreId)
    {
        this.warehouseStoreId = warehouseStoreId;
    }

    public Long getWarehouseStoreId()
    {
        return warehouseStoreId;
    }
    public void setWarehouseId(Long warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId()
    {
        return warehouseId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setNum(Integer num)
    {
        this.num = num;
    }

    public Integer getNum()
    {
        return num;
    }
    public void setUseNum(Integer useNum)
    {
        this.useNum = useNum;
    }

    public Integer getUseNum()
    {
        return useNum;
    }
    public void setRemainNum(Integer remainNum)
    {
        this.remainNum = remainNum;
    }

    public Integer getRemainNum()
    {
        return remainNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warehouseStoreId", getWarehouseStoreId())
            .append("warehouseId", getWarehouseId())
            .append("productId", getProductId())
            .append("num", getNum())
            .append("useNum", getUseNum())
            .append("remainNum", getRemainNum())
            .append("remark", getRemark())
            .toString();
    }
}
